#include "MainWindowView.h"

MainWindowView::MainWindowView(QWidget *parent)
    : QMainWindow(parent)
{
    init();
}

void MainWindowView::init() {
    setFixedSize(ApplicationSettings::instance().value("ResolutionH").toInt(),
                 ApplicationSettings::instance().value("ResolutionV").toInt());

    setWindowTitle("Szachy Pro");
}

QString MainWindowView::fileDialog() {
    return QFileDialog::getOpenFileName(this, tr("Otwórz plik rozgrywki"), "/", tr(".pgn"));
}

MainWindowView::~MainWindowView()
{

}
